package org.wlgzs.shop.exception;

/**
 * @Author: Ben
 * @Date: 2019/5/25 19:23
 * @Project org.wlgzs.shop
 */
public class CustomException extends Exception {

    public String message;
    public Throwable throwable;
    public CustomException(String message){
        super(message);
        this.message = message;
    }

    public CustomException(Throwable throwable){
        super(throwable);
        this.throwable = throwable;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}